package com.lotus.lqmp.service.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lotus.lqmp.base.biz.bean.PageQuery;
import com.lotus.lqmp.service.controller.vo.req.EcuReviewDetailQueryReq;
import com.lotus.lqmp.service.controller.vo.req.EcuReviewDetailSaveReq;
import com.lotus.lqmp.service.controller.vo.req.EcuReviewDetailUpdateReq;
import com.lotus.lqmp.service.controller.vo.resp.EcuReviewDetailResp;
import com.lotus.lqmp.service.controller.vo.resp.EcuReviewDetailUpdateResp;
import com.lotus.lqmp.service.service.EcuReviewStageRecordService;
import com.lotus.platform.common.model.base.BaseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.util.List;

/**
 * ECU评审记录表Controller
 *
 * @author Shiheng.Liu1
 * @date 2022-03-29
 */
@RestController
@RequestMapping("/ecuReviewStageRecord")
public class EcuReviewStageRecordController{
    @Autowired
    private EcuReviewStageRecordService EcuReviewStageRecordService;

    /**
     * ECU评审阶段数据查询
     */
    @ApiOperation("ECU评审阶段数据查询")
    @PostMapping("/ecuReviewDetail/page")
    public BaseResult<Page<EcuReviewDetailResp>> page(@RequestBody PageQuery<EcuReviewDetailQueryReq> pageQuery) {


        return BaseResult.ok();
    }

    /**
     * ECU评审阶段数据新增
     */
    @ApiOperation("ECU评审阶段数据新增")
    @PostMapping("/ecuReviewDetail/save")
    public BaseResult<EcuReviewDetailUpdateResp> saveEcuReviewDetail(@RequestBody @Valid EcuReviewDetailSaveReq saveReq) {


        return BaseResult.ok();
    }

    /**
     * ECU评审阶段数据修改
     */
    @ApiOperation("ECU评审阶段数据修改")
    @PostMapping("/ecuReviewDetail/update")
    public BaseResult<EcuReviewDetailUpdateResp> updateEcuReviewDetail(@RequestBody @Valid EcuReviewDetailUpdateReq updateReq) {


        return BaseResult.ok();
    }

    /**
     * ECU评审数据删除
     */
    @ApiOperation("ECU评审数据删除")
    @PostMapping("/batchRemove")
    public BaseResult updateEcuReviewDetail(@RequestBody List<Long> ids) {

        return BaseResult.ok();
    }

    /**
     * ECU评审阶段数据导出
     */
    @ApiOperation("ECU评审阶段数据导出")
    @PostMapping("/ecuReviewDetail/export")
    public BaseResult exportEcuReviewDetail(HttpServletResponse response, @RequestBody List<Long> ids) {

        return BaseResult.ok();
    }

}
